package com.it.mstaticDemo1;

public class InterfaceDemo2 {

    public static void main(String[] args) {
        Inter in = new Inter();


    }


}

interface inter{
    abstract void stu();
    public abstract void tea();
}

class Inter implements inter {

    @Override
    public void stu() {
        System.out.println("学生开始学习！");
    }

    @Override
    public void tea() {
        System.out.println("老师开始教学！");

    }
}
